﻿using Budget.Silver.Core.Locator;
using Castle.Core;

namespace Budget.Silver.ViewModel
{
    [Singleton]
    public class ViewModelLocator
    {
        public MainViewModel Main
        {
            get { return IoC.Current.Resolve<MainViewModel>(); }
        }

        public OutcomeViewModel Outcome
        {
            get { return IoC.Current.Resolve<OutcomeViewModel>(); }
        }

        public IncomeViewModel Income
        {
            get { return IoC.Current.Resolve<IncomeViewModel>(); }
        }

        public BalanceViewModel Balance
        {
            get { return IoC.Current.Resolve<BalanceViewModel>(); }
        }

        public StatisticsViewModel Statistics
        {
            get { return IoC.Current.Resolve<StatisticsViewModel>(); }
        }

        public ManagementViewModel Management
        {
            get { return IoC.Current.Resolve<ManagementViewModel>(); }
        }

        public CalendarViewModel Calendar
        {
            get { return IoC.Current.Resolve<CalendarViewModel>(); }
        }
    }
}